package cn.xfdzx.android.apps.shop.model;


import cn.xfdzx.android.apps.shop.bean.ConfirmBeen;
import cn.xfdzx.android.apps.shop.bean.DetailPringBean;
import cn.xfdzx.android.apps.shop.bean.GoodsLimitBean;
import cn.xfdzx.android.apps.shop.contract.GoodsLimitContract;
import cn.xfdzx.android.apps.shop.contract.OrderDetailPringContract;
import cn.xfdzx.android.apps.shop.net.RetrofitClient;
import io.reactivex.Flowable;

/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */
public class OrderDetailPringModel implements OrderDetailPringContract.Model {

    @Override
    public Flowable<ConfirmBeen> confirm(String order_id) {
        return  RetrofitClient.getInstance().getApi().confirmShou(order_id);
    }
    @Override
    public Flowable<DetailPringBean> getOrderDetailPring(String order_id) {
        return RetrofitClient.getInstance().getApi().getDetailPring(order_id);
    }

    @Override
    public Flowable<DetailPringBean> getCancleOrder(String order_id) {
        return RetrofitClient.getInstance().getApi().getStoreCancelsOrder(order_id);
    }
}
